package com.ruoyi.common.enums;

public enum CustomerAccountSourePortEnum {


    applet("applet","微信小程序"),
    allwork("allwork","微信公众号"),
    ios("ios","ios"),
    android("android","android"),
    web("web","pc商城"),
    manager("manager","管理员添加"),
    h5("h5","h5");


    private CustomerAccountSourePortEnum(String k, String v) {
        this.setKey(k);
        this.setValue(v);
    }

    public static String getNameByKey(String key) {
        String rst = "";
        for(CustomerAccountSourePortEnum oe: CustomerAccountSourePortEnum.values()) {
            if (oe.getKey().equals(key)) {
                rst = oe.getValue();
            }
        }
        return rst;
    }

    private String key;
    private String value;

    public String getKey() {
        return key;
    }
    public void setKey(String key) {
        this.key = key;
    }
    public String getValue() {
        return value;
    }
    public void setValue(String value) {
        this.value = value;
    }
}
